package videoLegend;

import java.util.Date;

public class User {
	
	private int id;
	private String login;
	private String password;
	private Date dateInscription;

	public User(){ }
	
	public User(int id, String login, String password, Date dateInscription){
		this.id = id;
		this.login = login;
		this.password = password;
		this.dateInscription = dateInscription;
	}
	
	public int getId() {
		return id;
	}

	public String getLogin() {
		return login;
	}

	public String getPassword() {
		return password;
	}

	public Date getDateInscription() {
		return dateInscription;
	}
	
	public String toString(){
		String s = "";
		s += "ID : "+this.id+"\n";
		s += "Login : "+this.login+"\n";
		s += "Password : "+this.password+"\n";
		s += "Date d'inscription : "+this.dateInscription+"\n";
		return s;
	}
	
}
